package cn.fay.chapter08;
interface Cry{
	void cry();
}
interface Laugh{
	void laugh();
}
interface Shout{
	void shout();
}
interface Captivate extends Cry,Laugh,Shout{
	void psilocybin();
}
class man{
	public void run(){
		System.out.println("run()");
	}
}
public class Soldier extends man implements Captivate {	
	@Override
	public void cry() {
		System.out.println("cry()");		
	}
	@Override
	public void shout() {
		System.out.println("shout()");	
	}
	@Override
	public void laugh() {
		System.out.println("laugh");	
	}
	@Override
	public void psilocybin() {
		System.out.println("psilocybin()");
	}
	public static void a(Cry cry){cry.cry();}
	public static void b(Shout shout){shout.shout();}
	public static void c(Laugh laugh){laugh.laugh();}
	public static void d(Captivate captivate){captivate.psilocybin();}

	public static void main(String[] args) {
		Soldier soldier=new Soldier();
		a(soldier);
		b(soldier);
		c(soldier);
		d(soldier);
		soldier.run();

	}

}
